<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateDeviceSpecsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('device_specs', function(Blueprint $table)
		{
			$table->increments('id');
			$table->string('code')->comment('参数型号');
			$table->decimal('eyelash_threshold', 5)->default(0.00)->comment('睫毛上下值 -1 - 1 默认0');
			$table->decimal('eyelash_length', 5)->unsigned()->default(0.12)->comment('睫毛长长短 0 - 1 默认0.12');
			$table->decimal('lip_feather', 5)->default(0.12)->comment('口红羽化 0.1 - 2 默认0.12');
			$table->decimal('pupil_size', 5)->unsigned()->default(0.23)->comment('美瞳大小 0 - 1 默认0.23');
			$table->decimal('eyeshadow_bright', 5)->unsigned()->default(3.50)->comment('眼影亮度 1 - 20 默认 3.5');
			$table->decimal('beautifulness', 5)->unsigned()->default(0.32)->comment('美颜程度 0 - 1 默认 0.32');
			$table->decimal('whiteness', 5)->unsigned()->default(2.00)->comment('美白程度 2 - 10 默认 2');
			$table->decimal('eyebrow_height', 5)->unsigned()->default(0.25)->comment('眉毛缩放 0.1~0.5 默认 0.25');
			$table->decimal('eyebrow_width', 5)->unsigned()->default(0.15)->comment('眉毛拉伸 0~0.5 默认 0.15');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('device_specs');
	}

}
